//
//  CMDBEditTagHeaderView.swift
//  CMDB
//
//  Created by 曹桂祥 on 2017/5/18.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class CMDBEditTagHeaderView: UICollectionReusableView {
    
    var textLabel : UILabel = UILabel()
    
    override init(frame : CGRect){
        
        super.init(frame: frame)
        
        setUp()
        
        buildSubViews()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}

extension CMDBEditTagHeaderView {
    
    internal override func setUp() {
        
        backgroundColor = UIColor.Hex(0xe2e2e2)
        
    }
    
    
    internal override func buildSubViews() {
        
        addSubview(textLabel)
        
        textLabel.font = CMDB_12_FONT
        
        textLabel.textColor = word87Color
        
        textLabel.textAlignment = .Left
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        textLabel.frame = CGRectMake(Label_Section_Header_Label_Left_Margin, 0, CGRectGetWidth(bounds), CGRectGetHeight(bounds))
        
    }
    
}
